package cn.zcq100.Adapter;

public class Test {
	public static int StringToInt(String str,int defaultValue){
		int a=defaultValue;
		try {
			a=Integer.parseInt(str);
		} catch (Exception e) {
			// TODO: handle exception
		}
		return a;
	}
	
	public static void main(String[] a){
		int b=StringToInt("zz",10);
		System.out.print(b);
		}
}
